package com.seven.good.service;

import com.seven.good.pojo.BidRecord;

import java.util.List;

public interface AuctionService {
    /**
     * @Description：插入竞价记录
     * @Author: ytj
     * @param: bidRecord 竞价记录
     * @return BidRecord 竞价记录
     * @CreateDate:  19/10/23
     */
    BidRecord doRecordInBidroom(BidRecord bidRecord);

    /**
     * @Description：获取当前商品的竞价列表记录
     * @Author: ytj
     * @param: gid 商品编号
     * @exception: List<BidRecord> 商品列表
     * @CreateDate:  19/10/23
     */
    List<BidRecord> listRecordListById(Integer gid);

    List<BidRecord> listAllRecordByGid(Integer gid);

    BidRecord getNewRecordById(Integer gid);

    void updateGoodState(Integer gid,Integer code);

    boolean cancleBid(Integer gid);

    void updateDealPrice(int gid,String price);

    int getPublisherIdByGid(Integer gid);
}
